require('babel-polyfill')
require('babel-register')({
  presets: [ 'env', 'latest', 'stage-0', 'react' ],
  ignore: function (filename) {
    if (filename.indexOf('rc-cascader/node_modules/array-tree-filter') > -1) {
      console.log('find it')
      return false
    } else if (filename.indexOf('node_modules') > -1) {
      return true
    } else {
      return false
    }
  }
})

require('./server/app')
